import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import Index from '@/views/Index'
import Home from '@/views/Home'
import Order from '@/views/Order'
import Show from '@/views/Show'
import bedDetailByDid from '@/views/bedDetailByDid'
import Department from '@/views/Department'
import HospitalManger from '@/views/HospitalManger'
import HospitalOrder from '@/views/HospitalOrder'
import Fault from '@/views/Fault'
import SystemLog from '@/views/SystemLog'
import ShowBedInfo from '@/views/ShowBedInfo'
import HospitalInfo from '@/views/HospitalInfo'
import DepartmentOrderList from '@/views/DepartmentOrderList'
import Shareholder from '@/views/Shareholder'
import Customer from '@/views/Customer'
import CustomerDetail from '@/views/CustomerDetail'
import Viewbeds from '@/views/Viewbeds'
import ChangePassword from '@/views/ChangePassword'
import DepartmentHeadManagement from '@/views/DepartmentHeadManagement'
import OrderList from '@/views/OrderList'
import Worker from '@/views/Worker'
import Section from '@/views/Section'
import Fix from '@/views/Fix'
import FixDetail from '@/views/FixDetail'
import Message from '@/views/Message'
import SectionBed from '@/views/SectionBed'
import Salary from '@/views/Salary'
import Complaint from '@/views/Complaint'
import CustomerModifyInfo from '@/views/CustomerModifyInfo'
import Register from '@/views/Register'
import WorkerInfo from '@/views/WorkerInfo'
import HospitalMangerInfo from '@/views/HospitalMangerInfo'
import IndexHome from '@/views/IndexHome'
import custerPwd from '@/views/custerPwd'
import DepartmentInfo from '@/views/DepartmentInfo'
import CustomerComplaint from '@/views/CustomerComplaint'
import SectionInfo from '@/views/SectionInfo'
import ShareholderInfo from '@/views/ShareholderInfo'
import MyOrder from '@/views/MyOrder'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index,
      children: [
        {
          path: '/Index/order',
          name: 'Order',
          component: Order
        },
        {
          path: '/Index/IndexHome',
          name: 'IndexHome',
          component: IndexHome
        },
        {
          path: '/Index/custerPwd',
          name: 'custerPwd',
          component: custerPwd
        },
        {
          path: '/Index/CustomerModifyInfo',
          component: CustomerModifyInfo
        },
        {
          path: '/Index/CustomerComplaint',
          name: 'CustomerComplaint',
          component: CustomerComplaint
        },
        {
          path: '/Index/MyOrder',
          name: 'MyOrder',
          component: MyOrder
        },
      ]
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      children: [
        {
          path: '/Home/Show',
          component: Show,
        },
        {
          path: '/Home/Department',
          name: 'Department',
          component: Department
        },
        {
          path: '/Home/bedDetailByDid',
          name: 'bedDetailByDid',
          component: bedDetailByDid
        },
        {
          path: '/Home/HospitalManger',
          name: 'HospitalManger',
          component: HospitalManger
        },
        {
          path: '/Home/Hospital/OrderList',
          name: 'HospitalOrder',
          component: HospitalOrder
        },
        {
          path: '/Home/OrderList',
          component: OrderList,
        },
        {
          path: '/Home/Fault',
          component: Fault,
        },
        {
          path: '/Home/SystemLog',
          component: SystemLog,
        },
        {
          path: '/ShowBedInfo',
          component: ShowBedInfo,
        },
        {
          path: '/Home/HospitalInfo',
          component: HospitalInfo,
        },

        {
          path: '/Home/Shareholder',
          component: Shareholder,
        },
        {
          path: '/Home/Customer',
          component: Customer,
        },
        {
          path: '/Home/CustomerDetail',
          component: CustomerDetail,
        },
        {
          path: '/Home/Viewbeds',
          component: Viewbeds,
        },
        {
          path: '/Home/ChangePassword',
          component: ChangePassword,
        },
        {
          path: '/Home/DepartmentHeadManagement',
          component: DepartmentHeadManagement,
        },
        {
          path: '/Home/Worker',
          component: Worker,
        },
        {
          path: '/Home/Section',
          component: Section,
        },
        {
          path: '/Home/Fix',
          component: Fix,
        },
        {
          path: '/Home/FixDetail',
          component: FixDetail,
        },
        {
          path: '/Home/Message',
          component: Message,
        },
        {
          path: '/Home/SectionBed',
          component: SectionBed,
        },
        {
          path: '/Home/Complaint',
          component: Complaint,
        },
        {
          path: '/Home/Salary',
          component: Salary,
        },
        {
          path: '/Home/Department/OrderList',
          component: DepartmentOrderList,
        },
        {
          path: '/Home/WorkerInfo',
          component: WorkerInfo,
        },
        {
          path: '/Home/DoctorInfo',
          component: HospitalMangerInfo,
        },
        {
          path: '/Home/DepartmentInfo',
          component: DepartmentInfo,
        },
        {
          path: '/Home/SectionInfo',
          component: SectionInfo,
        },
        {
          path: '/Home/ShareholderInfo',
          component: ShareholderInfo,
        },
      ]
    }
  ]
})
